package me.zhanshi123.lab4.dao;

import me.zhanshi123.lab4.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {

    User getUser(String name);

    int addUser(String name, String password, int group, String email);

    int updateUser(String name, String password, int group, String email);

    List<User> getAll();
}
